package model

// const (
// 	SUCCESS                     = "0000"
// 	INVALID_PARAMS              = "5000"
// 	CREAT_CK_TABLE_FAIL         = "5001"
// 	DELETE_CK_TABLE_FAIL        = "5002"
// 	ALTER_CK_TABLE_FAIL         = "5003"
// 	UPLOAD_LOCAL_PACKAGE_FAIL   = "5004"
// 	UPLOAD_PEER_PACKAGE_FAIL    = "5005"
// 	DELETE_LOCAL_PACKAGE_FAIL   = "5006"
// 	DELETE_PEER_PACKAGE_FAIL    = "5007"
// 	LIST_PACKAGE_FAIL           = "5008"
// 	INIT_PACKAGE_FAIL           = "5011"
// 	PREPARE_PACKAGE_FAIL        = "5012"
// 	INSTALL_PACKAGE_FAIL        = "5013"
// 	CONFIG_PACKAGE_FAIL         = "5014"
// 	START_PACKAGE_FAIL          = "5015"
// 	CHECK_PACKAGE_FAIL          = "5016"
// 	CONFIG_CLUSTER_FAIL         = "5017"
// 	JWT_TOKEN_EXPIRED           = "5020"
// 	JWT_TOKEN_INVALID           = "5021"
// 	JWT_TOKEN_NONE              = "5022"
// 	JWT_TOKEN_IP_MISMATCH       = "5023"
// 	USER_VERIFY_FAIL            = "5030"
// 	GET_USER_PASSWORD_FAIL      = "5031"
// 	PASSWORD_VERIFY_FAIL        = "5032"
// 	CREAT_TOKEN_FAIL            = "5033"
// 	DESC_CK_TABLE_FAIL          = "5040"
// 	CONNECT_CK_CLUSTER_FAIL     = "5041"
// 	IMPORT_CK_CLUSTER_FAIL      = "5042"
// 	UPDATE_CK_CLUSTER_FAIL      = "5043"
// 	QUERY_CK_FAIL               = "5044"
// 	DELETE_CK_CLUSTER_FAIL      = "5045"
// 	QUERY_METRIC_FAIL           = "5050"
// 	QUERY_RANGE_METRIC_FAIL     = "5051"
// 	START_CK_NODE_FAIL          = "5052"
// 	STOP_CK_NODE_FAIL           = "5053"
// 	UPGRADE_CK_CLUSTER_FAIL     = "5060"
// 	START_CK_CLUSTER_FAIL       = "5061"
// 	STOP_CK_CLUSTER_FAIL        = "5062"
// 	DESTROY_CK_CLUSTER_FAIL     = "5063"
// 	REBALANCE_CK_CLUSTER_FAIL   = "5064"
// 	GET_CK_CLUSTER_INFO_FAIL    = "5065"
// 	ADD_CK_CLUSTER_NODE_FAIL    = "5066"
// 	DELETE_CK_CLUSTER_NODE_FAIL = "5067"
// 	GET_CK_TABLE_METRIC_FAIL    = "5068"
// 	UPDATE_CONFIG_FAIL          = "5070"
// 	GET_ZK_STATUS_FAIL          = "5080"
// 	GET_ZK_TABLE_STATUS_FAIL    = "5081"
// 	GET_TABLE_LISTS_FAILED      = "5082"
// 	GET_CK_OPEN_SESSIONS_FAIL   = "5090"
// 	GET_CK_SLOW_SESSIONS_FAIL   = "5091"
// 	KILL_CK_OPEN_SESSION_FAIL   = "5092"
// 	GET_TASK_FAIL               = "5100"
// 	DELETE_TASK_FAIL            = "5101"
// 	STOP_TASK_FAIL              = "5102"
// 	DEPLOY_CK_CLUSTER_ERROR     = "5200"
// 	PING_CK_CLUSTER_FAIL        = "5201"
// 	CLUSTER_NOT_EXIST           = "5202"
// 	PURGER_TABLES_FAIL          = "5203"
// 	ARCHIVE_TABLE_FAIL          = "5204"
// 	SHOW_SCHEMA_ERROR           = "5205"
// 	GET_SCHEMA_UI_FAILED        = "5206"
// 	RESTORE_REPLICA_FAIL        = "5207"

// 	UNKNOWN = "9999"
// )

const (
	E_SUCCESS = "0000"
	E_UNKNOWN = "9999"

	E_INVALID_PARAMS    = "5000"
	E_INVALID_VARIABLE  = "5001"
	E_DATA_MISMATCHED   = "5002"
	E_DATA_CHECK_FAILED = "5003"
	E_DATA_NOT_EXIST    = "5004"
	E_DATA_DUPLICATED   = "5005"
	E_DATA_EMPTY        = "5006"

	E_JWT_TOKEN_EXPIRED      = "5020"
	E_JWT_TOKEN_INVALID      = "5021"
	E_JWT_TOKEN_NONE         = "5022"
	E_JWT_TOKEN_IP_MISMATCH  = "5023"
	E_CREAT_TOKEN_FAIL       = "5024"
	E_USER_VERIFY_FAIL       = "5030"
	E_GET_USER_PASSWORD_FAIL = "5031"
	E_PASSWORD_VERIFY_FAIL   = "5032"

	E_SSH_CONNECT_FAILED = "5100"
	E_SSH_EXECUTE_FAILED = "5101"
	E_CH_CONNECT_FAILED  = "5110"
	E_ZOOKEEPER_ERROR    = "5120"

	E_CONFIG_FAILED   = "5200"
	E_FILE_NOT_EXIST  = "5201"
	E_UPLOAD_FAILED   = "5202"
	E_DOWNLOAD_FAILED = "5203"

	E_MARSHAL_FAILED   = "5600"
	E_UNMARSHAL_FAILED = "5601"

	E_RECORD_NOT_FOUND            = "5800"
	E_DATA_INSERT_FAILED          = "5801"
	E_DATA_UPDATE_FAILED          = "5802"
	E_DATA_DELETE_FAILED          = "5803"
	E_DATA_SELECT_FAILED          = "5804"
	E_TRANSACTION_DEGIN_FAILED    = "5805"
	E_TRANSACTION_COMMIT_FAILED   = "5806"
	E_TRANSACTION_ROLLBACK_FAILED = "5807"
	E_TBL_CREATE_FAILED           = "5808"
	E_TBL_ALTER_FAILED            = "5809"
	E_TBL_DROP_FAILED             = "5810"
	E_TBL_EXISTS                  = "5811"
	E_TBL_NOT_EXISTS              = "5812"
	E_TBL_BACKUP_FAILED           = "5813"
	E_TBL_RESTORE_FAILED          = "5814"
)
